package cn.com.zero.common.gateway.enums;

/**
 * @author guoxin
 * @version 1.0.0
 * @Description
 * @date 2023/3/24 15:16
 */
public enum LoginClientEnum {
    PC_WEB(1,"pc-web"),
    ANDROID(2,"android"),
    IOS(3,"ios"),
    MOBILE(4,"mobile-web");

    /**
     * 状态名
     */
    private int value;
    /**
     * 状态值
     */
    private String name;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    LoginClientEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public static String getValueByName(int value){
        switch (value){
            case 1:
                return PC_WEB.getName();
            case 2:
                return ANDROID.getName();
            case 3:
                return IOS.getName();
            case 4:
                return MOBILE.getName();
            default:
                return null;
        }
    }
}
